package org.springcloud.wisdom.amusement.login.loginmsg.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springcloud.wisdom.amusement.login.loginmsg.entity.Mall;


@Mapper
public interface CanMalDao {
    //修改商家信息
    @Update("<script>"
            + "update wisdom.mall"
            + "    <set>"
            + "        <if test='null!= mname'>"
            + "            mname = #{mname},"
            + "        </if>"
            + "        <if test='null!= mphone'>"
            + "            mphone = #{mphone},"
            + "        </if>"
            + "        <if test='null!= maddress'>"
            + "            maddress = #{maddress},"
            + "        </if>"
            + "        <if test='null!= mrange'>"
            + "            mrange = #{mrange},"
            + "        </if>"
            + "        <if test='null!= canteen'>"
            + "            canteen = #{canteen},"
            + "        </if>"
            + "    </set>"
            + "    where mid = #{mid}"
            + "</script>")
    public int updateMall(Mall mall);

}
